/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_test_designtreeDetachedCriteria extends
	AbstractORMDetachedCriteria {
    public final IntegerExpression id;
    public final IntegerExpression elementId;
    public final IntegerExpression typeId;
    public final IntegerExpression rank;

    public T_test_designtreeDetachedCriteria() {
	super(org.testis.orm.classes.T_test_designtree.class,
		org.testis.orm.classes.T_test_designtreeCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	elementId = new IntegerExpression("elementId",
		this.getDetachedCriteria());
	typeId = new IntegerExpression("typeId", this.getDetachedCriteria());
	rank = new IntegerExpression("rank", this.getDetachedCriteria());
    }

    public T_test_designtreeDetachedCriteria(DetachedCriteria aDetachedCriteria) {
	super(aDetachedCriteria,
		org.testis.orm.classes.T_test_designtreeCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	elementId = new IntegerExpression("elementId",
		this.getDetachedCriteria());
	typeId = new IntegerExpression("typeId", this.getDetachedCriteria());
	rank = new IntegerExpression("rank", this.getDetachedCriteria());
    }

    public T_test_designtreeDetachedCriteria createParentCriteria() {
	return new T_test_designtreeDetachedCriteria(createCriteria("Parent"));
    }

    public T_test_designtreeDetachedCriteria createCloneCriteria() {
	return new T_test_designtreeDetachedCriteria(createCriteria("Clone"));
    }

    public T_test_designtreeDetachedCriteria createT_test_designtreeCriteria() {
	return new T_test_designtreeDetachedCriteria(
		createCriteria("ORM_T_test_designtree"));
    }

    public T_test_designtreeDetachedCriteria createT_test_designtree1Criteria() {
	return new T_test_designtreeDetachedCriteria(
		createCriteria("ORM_T_test_designtree1"));
    }

    public T_test_designtree_parameter_valuesDetachedCriteria createT_test_designtree_parameter_valuesCriteria() {
	return new T_test_designtree_parameter_valuesDetachedCriteria(
		createCriteria("ORM_T_test_designtree_parameter_values"));
    }

    public T_test_designtree uniqueT_test_designtree(PersistentSession session) {
	return (T_test_designtree) super.createExecutableCriteria(session)
		.uniqueResult();
    }

    public T_test_designtree[] listT_test_designtree(PersistentSession session) {
	List list = super.createExecutableCriteria(session).list();
	return (T_test_designtree[]) list.toArray(new T_test_designtree[list
		.size()]);
    }
}
